home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib / c / Quad_Arith.man < prev    next >
Text File  |  1991-03-18  |  2KB  |  50 lines

  1. '\" Copyright 1991 Regents of the University of California
  2. '\" Permission to use, copy, modify, and distribute this
  3. '\" documentation for any purpose and without fee is hereby
  4. '\" granted, provided that this notice appears in all copies.
  5. '\" The University of California makes no representations about
  6. '\" the suitability of this material for any purpose.  It is
  7. '\" provided "as is" without express or implied warranty.
  8. '\" 
  9. '\" $Header: /sprite/src/lib/c/quad/RCS/Quad_Arith.man,v 1.1 91/03/18 12:19:22 kupfer Exp $ SPRITE (Berkeley)
  10. '/" 
  11. .so \*(]ltmac.sprite
  12. .HS Quad lib
  13. .BS
  14. '\" Note:  do not modify the .SH NAME line immediately below!
  15. .SH NAME
  16. Quad_AddUns, Quad_AddUnsLong \- Arithmetic operations on 64-bit integers
  17. .SH SYNOPSIS
  18. .nf
  19. \fB#include <quad.h>\fR
  20. .sp
  21. void
  22. \fBQuad_AddUns\fR(\fIuQuad1\fR, \fIuQuad2\fR, \fIuResultPtr\fR)
  23. .sp
  24. void
  25. \fBQuad_AddUnsLong\fR(\fIuQuad1\fR, \fIuLong\fR, \fIuResultPtr\fR)
  26. .SH ARGUMENTS
  27. .AS u_quad *uResultPtr
  28. .AP u_quad uQuadN in
  29. N'th unsigned quad operand
  30. .AP u_long uLong in
  31. unsigned long operand
  32. .AP u_quad *uResultPtr out
  33. unsigned quad result
  34. .BE
  35.  
  36. .SH DESCRIPTION
  37. .PP
  38. Sprite provides some common operations on 64-bit integers.
  39. .B Quad_AddUns
  40. adds two unsigned quads together.
  41. .B Quad_AddUnsLong 
  42. adds an unsigned long to an unsigned quad.  In both cases, one of the
  43. quad operands can also be used to hold the result.
  44. .PP
  45. It is expected that more quad operations will be added to the library
  46. as they are needed for different applications.
  47.  
  48. .SH KEYWORDS
  49. quad, arithmetic, counter
  50.